﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Knlght.Web.Infrastructure.Mvc
{
    /// <summary>
    /// 分页参数
    /// </summary>
    public class PagingParameter
    {
        public PagingParameter()
        {
            Query = new Dictionary<string, string>();
        }

        /// <summary>
        /// 当前页号
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页显示数量
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 查询条件
        /// </summary>
        public Dictionary<string, string> Query { get; set; }
        /// <summary>
        /// 排序的属性名称
        /// </summary>
        public string SortProperty { get; set; }
        /// <summary>
        /// 排序的方向 
        /// </summary>
        public string SortDirection { get; set; }

    }
}
